<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});

Route::get('/computility', 'App\Http\Controllers\PublicController@computility');
Route::get('/node_list', 'App\Http\Controllers\PublicController@node_list');
Route::get('/node_log_list', 'App\Http\Controllers\PublicController@node_log_list');
Route::post('/buy_node', 'App\Http\Controllers\PublicController@buy_node');

Route::get('/service_list', 'App\Http\Controllers\PublicController@service_list');
Route::get('/service_info', 'App\Http\Controllers\PublicController@service_info');
Route::get('/order_list', 'App\Http\Controllers\PublicController@order_list');
Route::get('/order_log', 'App\Http\Controllers\PublicController@order_log');
Route::get('/reuser_list', 'App\Http\Controllers\PublicController@reuser_list');
Route::post('/add_order', 'App\Http\Controllers\PublicController@add_order');
Route::post('/update_rebate_status', 'App\Http\Controllers\PublicController@update_rebate_status');
Route::post('/update_rebate', 'App\Http\Controllers\PublicController@update_rebate');
Route::post('/invite_bind', 'App\Http\Controllers\PublicController@invite_bind');
Route::get('/coin_price', 'App\Http\Controllers\PublicController@coin_price');
Route::get('/invite_status', 'App\Http\Controllers\PublicController@invite_status');